package com.jt.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jt.mapper.RoleMapper;
import com.jt.pojo.Role;
import com.jt.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Autowired
    private  RoleMapper roleMapper;
    @Override
    public Role selectById(String roleId) {
        return roleMapper.selectById(roleId);
    }

    @Override
    public List<String> selectRouterIdListByRoleId(String roleId) {
        return  roleMapper.selectRouterIdListByRoleId(roleId);
    }

    @Override
    public List<Role> getRoleList() {
        return roleMapper.selectList(null);
    }

}
